<template>
	<view class="foodpage">
		
		<!-- 轮播 -->
		<view class="top">
			<swiper class="swiper" circular  autoplay="true" indicator-dots interval="2000"	>
						<swiper-item>
							<view class="swiper-item">
								<image src="/static/image/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg.jpg" mode=""></image>
								<view class="databox">
									<view class="boxtitle">
										膳食智商
									</view>
									<view class="line"></view>
									<view class="boxbtn">
										查看
									</view>
								</view>
							</view>
						</swiper-item>
						<swiper-item>
							<view class="swiper-item">
								<image src="/static/image/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg/banner-1-https://changban.dianjingkeji.net/img/banner-1-拷贝.jpg.jpg" mode=""></image>
								<view class="databox">
									<view class="boxtitle">
										膳食智商
									</view>
									<view class="line"></view>
									<view class="dataline">
										<view class="type">
											A+
										</view>
										<view class="number">
											92
										</view>
										<view class="danwei">
											分
										</view>
									</view>
								</view>
							</view>
						</swiper-item>
					
						
						
					</swiper>
		</view>
		
		<!-- 周期 -->
		<view class="weekline">
			<view class="iconfont icon-xiangzuo"></view>
			<view class="week">
				08月01日-08月07日
			</view>
			<view class="iconfont icon-xiangyou2"></view>
		</view>
		
		
		<!-- 日历 -->
		<view class="calendarline">
			<view class="dayline">
				<view class="itemweekday">
					日
				</view>
				<view class="itemweekday">
					一
				</view>
				<view class="itemweekday">
					二
				</view>
				<view class="itemweekday">
					三
				</view>
				<view class="itemweekday">
					四
				</view>
				<view class="itemweekday">
					五
				</view>
				<view class="itemweekday">
					六
				</view>
			</view>
			<view class="dayline">
				<view class="itemday">
					3
				</view>
				<view class="itemday">
					4
				</view>
				<view class="itemday">
					5
				</view>
				<view class="itemday">
					6
				</view>
				<view class="itemday">
					7
				</view>
				<view class="itemday act">
					8
				</view>
				<view class="itemday">
					9
				</view>
			</view>
		</view>
		
		<view class="boxline">
			<view class="itembox" @click="yingyangchaxun">
				<view class="yuan">
					<view class="iconfont icon-sousuo">
						
					</view>
				</view>
				<view class="boxname">
					<view class="name">
						营养查询
					</view>
					<view class="nametitle">
						快速查询
					</view>
				</view>
			</view>
			
			<view class="itembox" @click="shicailuru">
				<view class="yuan yuan1">
					<view class="iconfont icon-rengong">
						
					</view>
				</view>
				<view class="boxname">
					<view class="name">
						录入食材
					</view>
					<view class="nametitle">
						语音录入
					</view>
				</view>
			</view>
			
		</view>
		
	
		
	<!-- 食材类别 -->
	
	<view class="bannerbox">
		<view class="bannertitlebox">
			食材类别
			<view class="titleline"></view>
		</view>
		<view class="list">
			<view class="listitem">
				<view class="dex">
					1
				</view>
				<image src="/static/image/蔬菜.png" mode=""></image>
				<view class="name">
					蔬菜类
				</view>
			</view>
		</view>
	</view>
	
	
	<!-- 会员食品库 -->
	
	<view class="bannerbox">
		<view class="bannertitlebox">
			会员食品库
			<view class="titleline"></view>
		</view>
		<view class="list">
			<view class="listitem">
				<view class="dex">
					1
				</view>
				<image src="/static/image/蔬菜.png" mode=""></image>
				<view class="name">
					抗炎食物
				</view>
			</view>
		</view>
	</view>
	
<!-- 	我的食品库 -->

<view class="foodkutitle">
	<view class="title">
		我的食品库
	</view>
	<view class="lable">
		(已购)
	</view>
	<view class="line"></view>
</view>


<view class="foodbox">
	<view class="titleline">
		<view class="left">
			蔬菜类
		</view>
		<view class="lable">
			查看所有
		</view>
	</view>
	<view class="list">
		<view class="itemfood">
			<image src="/static/image/fd456a1456416.jpg" mode=""></image>
			<view class="itemname">
				土豆
			</view>
		</view>
	</view>
</view>
	
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
		yingyangchaxun(){
			uni.navigateTo({
				url:'/pagesA/yingyangchaxun/yingyangchaxun'
			})
		},
		shicailuru(){
			uni.navigateTo({
				url:'/pagesA/lurushicai/lurushicai'
			})
		},
		}
	}
</script>

<style lang="less" scoped>
.foodpage{
	width: 750rpx;
	box-sizing: border-box;
background: linear-gradient(180deg, rgba(242,248,255,1) 0%,rgba(255,255,255,0) 76%);
	padding-bottom: 200rpx;
	
	.top{
		width: 100%;
		height: 320rpx;
		box-sizing: border-box;
		background: linear-gradient(180deg, #F3EEFF  0%,rgba(255,255,255,1) 100%);
		.swiper{
			width: 100%;
			height: 100%;
			box-sizing: border-box;
			padding:0 20rpx ;
			.swiper-item{
				width:99.5%;
				height: 99%;
				border-radius: 30rpx;
				box-sizing: border-box;
				position: relative;
			
				image{
					width: 100%;
					height: 100%;
					border-radius: 30rpx;
				}
				.databox{
					position: absolute;
					left: 0;
					top: 0;
					width: 100%;
					height: 100%;
					color: white;
					box-sizing: border-box;
					padding-left: 40rpx;
					padding-top: 60rpx;
					.boxtitle{
						font-size: 40rpx;
					}
					.line{
						width: 80rpx;
						height: 4rpx;
						background-color: white;
						margin-top: 10rpx;
					}
					.boxbtn{
						width: 180rpx;
						height: 50rpx;
						line-height: 50rpx;
						text-align: center;
						background-color: white;
						font-size: 28rpx;
						font-weight: bold;
						border-radius: 25rpx;
						color: #a74cff;
						margin-top: 40rpx;
					}
					.dataline{
						display: flex;
						align-items: center;
						margin-top: 20rpx;
						.type{
							font-size: 70rpx;
							font-weight: bold;
							
						}
						.number{
							font-size: 70rpx;
							font-weight: bold;
							margin-left: 40rpx;
							
						}
						.danwei{
							
						}
						
					}
					
				}
			}
		}
	}
	.weekline{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 40rpx 0;
		background-color: white;
		.week{
			margin: 0 30rpx;
			font-weight: bold;
			color: #1A4F8A;
			font-size: 32rpx;
			font-family: OPPOSans-black;
		}
		.iconfont{
			color: #1A4F8A;
		}
	}
	.calendarline{
		width: 100%;
		box-sizing: border-box;
		background: white;
		padding: 0 10rpx 30rpx 10rpx;
		.dayline{
			display: flex;
			align-items: center;
			justify-content: space-evenly;
			color: #999999 ;
			line-height: 2.5;
			
			.itemweekday{
				font-weight: bold;
				
				width: 70rpx;
				height: 70rpx;
				border-radius: 30rpx;
				text-align: center;
				margin: auto;
				box-sizing: border-box;
				
			}
			.itemday{
				font-weight: bold;
				color: black;
				width: 66rpx;
				height: 66rpx;
				line-height: 70rpx;
				border-radius: 30rpx;
				text-align: center;
				margin: auto;
				box-sizing: border-box;
				
			}
			.act{
				background-color: #1A4F8A;
				color: white;
			}
		}
		
	}
	
	.boxline{
		width: 100%;
		display: flex;
		margin: 20rpx 0;
		box-sizing: border-box;
		justify-content: space-between;
		.itembox{
			width: 48%;
			background-color: white;
			box-sizing: border-box;
			padding: 40rpx;
			display: flex;
			align-items: center;
			.yuan{
				width: 90rpx;
				height: 90rpx;
				border-radius: 50%;
				line-height: 90rpx;
				text-align: center;
				margin-right: 20rpx;
				background: linear-gradient(180deg, rgba(255,201,148,1) 0%,rgba(255,146,40,1) 100%);
				.iconfont{
					margin: auto;
					color: white;
					font-size: 40rpx;
				}
			}
			.boxname{
				.name{
					font-weight: bold;
				}
				.nametitle{
					font-size: 30rpx;
					color: gray;
				}
			}
			.yuan1{
				background: linear-gradient(180deg, rgba(136,215,255,1) 0%,rgba(102,202,248,1) 100%);
			}
		}
	}
	
	
	.pagebtn{
		width: 160rpx;
		height: 160rpx;
		border-radius: 80rpx;
		background-color: rgba(228,228,228,0.72);
		position: fixed;
		box-shadow: 0pt 2pt 6pt 0pt rgba(0,0,0,0.17);
		top: 40vh;
		right: 30rpx;
		color: #1A4F8A;
		text-align: center;
		font-size: 42rpx;
		font-family: PingFangSC-regular;
		padding-top: 20rpx;
		box-sizing: border-box;
	   font-weight: 550;
	
	}
	.bannerbox{
		width: 100%;
		height: 350rpx;
		margin-top: 20rpx;
		box-sizing: border-box;
		padding: 20rpx 0 20rpx 20rpx ;
		background-color: white;
		.bannertitlebox{
			font-weight: bold;
			font-size: 30rpx;
			position: relative;
			.titleline{
				width: 60rpx;
				height: 8rpx;
				background-color:#1A4F8A;
				border-radius: 4rpx;
				position: absolute;
				left: 0;
				bottom: 0;
			}
		}
		.list{
			width: 100%;
			height: 85%;
			
			margin-top: 20rpx;
			display: flex;
			align-items: flex-start;
			flex-wrap: wrap;
			overflow-x: auto;
			.listitem{
				height: 50rpx;
				line-height: 50rpx;
				padding: 5rpx 28rpx 5rpx 0;
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-radius: 20rpx;
				color:#585858;
				background-color: #F2F8FF;
				.dex{
					height: 100%;
					width: 40rpx;
					text-align: center;
					border-top-left-radius: 20rpx;
					border-bottom-left-radius: 20rpx;
					background-color: #F2F8FF;
					font-weight: bold;
				}
				image{
					width: 36rpx;
					height: 36rpx;
					margin: 0 20rpx;
				}
				.name{
					font-size: 30rpx;
					font-weight: 700;
				}
			}
			
		}
	}
	.foodkutitle{
		display: flex;
		align-items: center;
		height: 32rpx;
		line-height: 32rpx;
		position: relative;
		margin: 50rpx 30rpx;
		.title{
			font-weight: bold;
		}
		.line{
			width: 60rpx;
			height: 8rpx;
			position: absolute;
			border-radius: 4rpx;
				background-color:#1A4F8A;
				left: 0;
				bottom: -3rpx;
		}
	}
	.foodbox{
		width: 100%;
		background-color: white;
		margin-top: 20rpx;
		box-sizing: border-box;
		padding: 20rpx;
		.titleline{
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 30rpx;
			line-height: 30rpx;
			.left{
				border-left: 6rpx solid #1A4F8A;
			    font-size: 30rpx;
					font-weight: bold;
					padding-left: 14rpx;
			}
			.lable{
				font-size: 26rpx;
				color: gray;
				font-weight: bold;
			}
		}
		.list{
			width: 100%;
			
			margin: 20rpx 0;
			.itemfood{
				width: 310rpx;
				height: 210rpx;
				border-radius: 30rpx;
				position: relative;
				image{
					width: 100%;
					height: 100%;
					border-radius: 30rpx;
				}
				.itemname{
					width: 100%;
					height: 42rpx;
					position: absolute;
					bottom: 0;
					left: 0;
					background-color: rgba(0, 0, 0, 0.5);
					color: white;
					border-bottom-left-radius: 30rpx;
					border-bottom-right-radius: 30rpx;
					text-align: center;
					line-height: 42rpx;
					font-size: 30rpx;
					
				}
			}
		}
	}
	
	
}
</style>
